package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtExchange;
import com.greyu.ysj.entity.CbtExchangeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtExchangeMapper {
    long countByExample(CbtExchangeExample example);

    int deleteByExample(CbtExchangeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtExchange record);

    int insertSelective(CbtExchange record);

    List<CbtExchange> selectByExample(CbtExchangeExample example);

    CbtExchange selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CbtExchange record, @Param("example") CbtExchangeExample example);

    int updateByExample(@Param("record") CbtExchange record, @Param("example") CbtExchangeExample example);

    int updateByPrimaryKeySelective(CbtExchange record);

    int updateByPrimaryKey(CbtExchange record);
    
    int selectMaxExchangeId();
    //***************************
    double selectTotalExchangeByuserId(int userId);
}